/**
 * Copyright 2008 Adam Ruggles.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package kiff.dao;

import kiff.entity.User;
import kiff.exception.DataLayerException;

/**
 * Interface for User Data Access Objects.
 * @author Adam
 * @version $Id: UserDAO.java 66 2008-11-14 08:00:39Z a.ruggles $
 */
public interface UserDAO extends CoreDAO<User> {
	/**
	 * Name of the Find by Owner named query.
	 */
	String GET_BY_USERNAME = "User.getByUsername";
	/**
	 * Returns a User by username.
	 * @param username The username.
	 * @return A User.
	 * @throws DataLayerException If an error occurs in the data layer.
	 */
	User getByUsername(String username) throws DataLayerException;
}
